import Vue from 'vue'
import App from './App.vue'
import router from './router'
Vue.config.productionTip = false
let isLogin = false
router.beforeEach((to, from, next) => {
  if (!isLogin && to.path.startsWith('/my')) {
    alert('请先登录!')
    return next(false)
  }
  return next()
})
new Vue({
  router,
  render: h => h(App),
}).$mount('#app')
